package com.soft.cqlinglong.common.utils;

import java.util.UUID;

public class UniqueUtil {
    public UniqueUtil() {
    }

    public static String uuid() {
        UUID uuid = UUID.randomUUID();
        return uuid.toString().replace("-", "").toUpperCase();
    }

    public static String uuid16() {
        UUID uuid = UUID.randomUUID();
        return uuid.toString().replace("-", "").toUpperCase().substring(0, 16);
    }

    public static void main(String[] args) {
        System.out.println(uuid());
    }
}